from wormbane.engine.actions.die import action_die

def action_hit(monster, target, game):
    game.write(monster, 'hits', target)
    monster.time += 1
    target.health -= 1
    if target.health <= 0:
        action_die(target, game)
